local k_seckill = KEYS[1]
local k_users = KEYS[2]

local v_expiry = ARGV[1]
local v_startTime = ARGV[2]
local v_endTime = ARGV[3]
local v_total = ARGV[4]

redis.call("hset", k_seckill, "start", v_startTime, "end", v_endTime, "total", v_total, "booked", 0)
redis.call("expire", k_seckill, v_expiry)
-- redis.call("sadd", k_users, 0)
-- redis.call("expire", k_users, v_expiry)

return
